<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" 
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:f="http://java.sun.com/jsf/core">
     <ui:composition template="/template.xhtml">
         <ui:define name="title">
             Добро пожаловать в кабинет!
         </ui:define>
            <ui:define name="content">
                <c:if test="#{userBean.curentUser == null}">
                    Вы не авторизировались. Авторизируйтесь!
                </c:if> 
                <c:if test="#{userBean.curentUser != null}">
                    <table>
                        <tr>
                            <td>
                                <a href="/ors/faces/users/edit.xhtml">
                                <h:graphicImage value="/ors/faces/javax.faces.resource/img/User48.png"/>
                                <br/>Мои данные
                                </a>
                            </td>
                            <td>
                                <a href="/ors/faces/users/dialog.xhtml">
                                <h:graphicImage value="/ors/faces/javax.faces.resource/img/mess48.png"/>
                                <br/>Мои сообщения
                                </a>
                            </td>
                            <td>
                               <a href="/ors/faces/users/orders.xhtml">
                                <h:graphicImage value="/ors/faces/javax.faces.resource/img/Shoppingcart48.png" />
                                <br/>Мои заказы
                                </a> 
                            </td>
                            <td>
                               <a href="/ors/faces/users/faq.xhtml">
                                <h:graphicImage value="/ors/faces/javax.faces.resource/img/info48.png" />
                                <br/>Мои вопросы
                                </a> 
                            </td>
                        </tr>
                    </table>
                    
                    
                        
                    
                </c:if>
            </ui:define>
        </ui:composition>
</html>
